﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace xmlBookstore.classLibrary
{
    public class CategoryList
    {
        private List<Category> _categories = new List<Category>();

        public List<Category> Categories
        {
            get { return _categories; }
        }

        public void AddCategory(Category category)
        {
            _categories.Add(category);
        }

        public Boolean RemoveCategory(Category category)
        {
            return _categories.Remove(category);
        }
    }
}
